package com.bwie.home.backstage.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.home.backstage.dao.PermDao;
import com.bwie.home.backstage.entity.PermEntity;
import com.bwie.home.backstage.service.PermService;
import com.bwie.home.common.utils.PageUtils;
import com.bwie.home.common.utils.Query;
import org.springframework.stereotype.Service;


import java.util.Map;


@Service("permService")
public class PermServiceImpl extends ServiceImpl<PermDao, PermEntity> implements PermService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PermEntity> page = this.page(
                new Query<PermEntity>().getPage(params),
                new QueryWrapper<>()
        );

        return new PageUtils(page);
    }

}